
import { createRouter, createWebHashHistory } from 'vue-router';

// 定义路由组件
const Home = () => import('@/pages/Home.vue');
const About = () => import('@/pages/About.vue');

// 路由配置
const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
  },
  {
    path: '/about',
    name: 'About',
    component: About,
  },
];

// 创建路由实例
const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
